<?php

$menuArray = array("Main" => "mainPage.php?", "My Projects"=>"projectController.php?myProjects=1", 
                   "View Proposals"=>"projectController.php?viewProposalsRequest=1", "Proposal Summary"=>"projectController.php?proposalSummary=1",
                   "Logout"=>"logout.php","View Projects"=>"projectController.php?viewProjectsRequest=1", "Funding Allocation"=>"portfolioController.php",
                   "Approve/Disapprove Proposals"=>"portfolioController.php?approve=1", "Requirements Maintenance"=>"editDB.php?reqEdit=1",
                   "Sat/Sensor/Parameter/EDR Maintenance"=>"editDB.php?grid=1", "Edit Database"=>"editDB.php?editDb=1",
                   "Propose Project"=>"createProject.php");

$mvcMenuArray = array("Main" => "mainPage.php?request=login&action=loginRequest", "My Projects"=>"mainPage.php?request=project&action=viewMyProjectsRequest", 
                   "View Proposals"=>"mainPage.php?request=project&action=viewProposalsRequest", "Proposal Summary"=>"projectController.php?proposalSummary=1",
                   "Logout"=>"logout.php","View Projects"=>"mainPage.php?request=project&action=viewProjectsRequest", "Funding Allocation"=>"mainPage.php?request=portfolio&action=viewFundingAllocationRequest",
                   "Approve/Disapprove Proposals"=>"mainPage.php?request=portfolio&action=getProcessApprovalPage&approve=1", "Requirements Maintenance"=>"editDB.php?reqEdit=1",
                   "Sat/Sensor/Parameter/EDR Maintenance"=>"editDB.php?grid=1", "Edit Database"=>"editDB.php?editDb=1",
                   "Propose Project"=>"mainPage.php?request=project&action=proposeProjectRequest",
                   "View Portfolio"=>"mainPage.php?request=portfolio&action=viewPortfolioRequest",
                   "Profile"=>"mainPage.php?request=common&action=editProfileRequest",
                   "Help"=>"mainPage.php?request=common&action=getHelpPageRequest");

function getAnchorTag($linkName, $verticalBar) {
    global $mvcMenuArray;
    $url = $mvcMenuArray[$linkName];
    if ($verticalBar) {
        return "<a class=\"white\" href=\"$url\">$linkName</a> | ";
    } else {
        return "<a class=\"white\" href=\"$url\">$linkName</a>";
    }
}

?>
